+Wed Sep 26 16:15:25 2001 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtknotebook.c (gtk_notebook_set_tab_label): Fix
+ problem where menmonic wasn't removed properly when
+ setting a label when there already is a label.
+ Also, handle setting the tab label back to the same
+ value. (#61160, #61161)
+
+ * gtk/gtkentry.c (paste_received): Patch from
+ Damian Ivereigh to replace selection if there is
+ one. (#61121)
+
2001-09-25 Darin Adler <darin@bentspoon.com>
* tests/.cvsignore: Ignore new test program.
+Wed Sep 26 16:15:25 2001 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtknotebook.c (gtk_notebook_set_tab_label): Fix
+ problem where menmonic wasn't removed properly when
+ setting a label when there already is a label.
+ Also, handle setting the tab label back to the same
+ value. (#61160, #61161)
+
+ * gtk/gtkentry.c (paste_received): Patch from
+ Damian Ivereigh to replace selection if there is
+ one. (#61121)
+
2001-09-25 Darin Adler <darin@bentspoon.com>
* tests/.cvsignore: Ignore new test program.
+Wed Sep 26 16:15:25 2001 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtknotebook.c (gtk_notebook_set_tab_label): Fix
+ problem where menmonic wasn't removed properly when
+ setting a label when there already is a label.
+ Also, handle setting the tab label back to the same
+ value. (#61160, #61161)
+
+ * gtk/gtkentry.c (paste_received): Patch from
+ Damian Ivereigh to replace selection if there is
+ one. (#61121)
+
2001-09-25 Darin Adler <darin@bentspoon.com>
* tests/.cvsignore: Ignore new test program.
+Wed Sep 26 16:15:25 2001 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtknotebook.c (gtk_notebook_set_tab_label): Fix
+ problem where menmonic wasn't removed properly when
+ setting a label when there already is a label.
+ Also, handle setting the tab label back to the same
+ value. (#61160, #61161)
+
+ * gtk/gtkentry.c (paste_received): Patch from
+ Damian Ivereigh to replace selection if there is
+ one. (#61121)
+
2001-09-25 Darin Adler <darin@bentspoon.com>
* tests/.cvsignore: Ignore new test program.
+Wed Sep 26 16:15:25 2001 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtknotebook.c (gtk_notebook_set_tab_label): Fix
+ problem where menmonic wasn't removed properly when
+ setting a label when there already is a label.
+ Also, handle setting the tab label back to the same
+ value. (#61160, #61161)
+
+ * gtk/gtkentry.c (paste_received): Patch from
+ Damian Ivereigh to replace selection if there is
+ one. (#61121)
+
2001-09-25 Darin Adler <darin@bentspoon.com>
* tests/.cvsignore: Ignore new test program.
+Wed Sep 26 16:15:25 2001 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtknotebook.c (gtk_notebook_set_tab_label): Fix
+ problem where menmonic wasn't removed properly when
+ setting a label when there already is a label.
+ Also, handle setting the tab label back to the same
+ value. (#61160, #61161)
+
+ * gtk/gtkentry.c (paste_received): Patch from
+ Damian Ivereigh to replace selection if there is
+ one. (#61121)
+
2001-09-25 Darin Adler <darin@bentspoon.com>
* tests/.cvsignore: Ignore new test program.
+Wed Sep 26 16:15:25 2001 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtknotebook.c (gtk_notebook_set_tab_label): Fix
+ problem where menmonic wasn't removed properly when
+ setting a label when there already is a label.
+ Also, handle setting the tab label back to the same
+ value. (#61160, #61161)
+
+ * gtk/gtkentry.c (paste_received): Patch from
+ Damian Ivereigh to replace selection if there is
+ one. (#61121)
+
2001-09-25 Darin Adler <darin@bentspoon.com>
* tests/.cvsignore: Ignore new test program.
if (text)
{
- gint pos = entry->current_pos;
+ gint pos, start, end;
+ if (gtk_editable_get_selection_bounds (editable, &start, &end))
+ gtk_editable_delete_text (editable, start, end);
+
+ pos = entry->current_pos;
gtk_editable_insert_text (editable, text, -1, &pos);
gtk_editable_set_position (editable, pos);
}
return list;
}
+static void
+gtk_notebook_remove_tab_label (GtkNotebook *notebook,
+ GtkNotebookPage *page)
+{
+ if (page->tab_label)
+ {
+ if (page->mnemonic_activate_signal)
+ gtk_signal_disconnect (page->tab_label,
+ page->mnemonic_activate_signal);
+
+ gtk_widget_unparent (page->tab_label);
+ }
+}
+
static void
gtk_notebook_real_remove (GtkNotebook *notebook,
GList *list)
if (GTK_WIDGET_VISIBLE (page->child) && GTK_WIDGET_VISIBLE (notebook))
need_resize = TRUE;
- if (page->tab_label && page->mnemonic_activate_signal)
- gtk_signal_disconnect (page->tab_label,
- page->mnemonic_activate_signal);
-
gtk_widget_unparent (page->child);
- if (page->tab_label)
- gtk_widget_unparent (page->tab_label);
-
+ gtk_notebook_remove_tab_label (notebook, page);
+
if (notebook->menu)
{
gtk_container_remove (GTK_CONTAINER (notebook->menu),
* we need to set the associated label
*/
page = list->data;
- if (page->tab_label)
- gtk_widget_unparent (page->tab_label);
-
+
+ if (page->tab_label == tab_label)
+ return;
+
+ gtk_notebook_remove_tab_label (notebook, page);
+
if (tab_label)
{
page->default_tab = FALSE;